package com.yuanfeng.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.vo.job.AcquiescenceVO;
import com.yuanfeng.order.entity.OrderGoodsEntity;

import java.util.List;
import java.util.Map;

/**
 * @ClassName OrderGoodsService
 * @Description
 * @Author hyq
 * @Date 2023/6/21 10:40
 * @Version 1.0
 **/

public interface OrderGoodsService extends IService<OrderGoodsEntity> {

    /**
     * 查询物流信息
     *
     * @param map
     * @return
     */
    ResponseResult queryLogistics(Map<Object, Object> map);



    /**
     * @Description: 退款查询商品信息
     * @Param:  [map]
     * @Return: ResponseResult
     */
    ResponseResult queryReturnGoods(Map<String, Object> map);



    /**
     * @Description: 查询商品信息带分页
     * @Param:  [map]
     * @Return: ResponseResult
     */
    ResponseResult selectByPage(Map<String, Object> map);

    /**
     * 商品销售排行
     *
     * @param map
     * @return
     */
    ResponseResult querySalesRanking(Map<String, Object> map);


    /**
     * 根据订单id商品信息
     * @param orderId
     * @return
     */
    List<AcquiescenceVO> queryGoodsInfoByjob(String orderId);
}
